Network handover method and apparatus

ABSTRACT

Embodiments of the present invention provide an access point handover method and an apparatus. The method includes: sensing, by a terminal, that a currently connected access point cannot satisfy a transmission condition. The method includes finding, by the terminal, that at least one access point satisfying the transmission condition exists in access points having names partially the same as that of the currently connected access point. The method includes establishing, by the terminal, a connection to one of the at least one access point satisfying the transmission condition.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a national stage of International Application No. PCT/CN2015/094301, filed on Nov. 11, 2015, which is hereby incorporated by reference in its entirety.

TECHNICAL FIELD

The present invention relates to the communications field, and in particular, to a network handover method and an apparatus.

BACKGROUND

With popularity of home broadband and development of routers toward a 5G (fifth generation) technology, it is becoming more common for home users to perform networking by using a dual-band router or two routers. For example, there are the following usage scenarios:

A 5G band has small interference, and provides better surfing experience than a 2.4G network. A 2.4G/5G dual-band router usually supports both a 2.4G hotspot and a 5G hotspot. In this case, a problem that is prone to occur is described as follows. It is assumed that a name of a 2.4G router is AP (Access Point) 2.4G and a name of a 5G router is AP 5G. A user preferably uses a 5G signal. Coverage of a 5G network is small. After the user goes far, because the 5G network is still connected and a terminal can still detect the 5G network even though the 5G signal is very poor, the terminal cannot be handed over to a 2.4G network unless the user manually hands over to the 2.4G network. This causes very poor surfing experience of the user.

SUMMARY

Embodiments of the present invention provide a network handover method and an apparatus, to automatically select a to-be-accessed network, thereby ensuring surfing experience of a user.

The following technical solutions are used in the embodiments of the present invention to achieve the foregoing objective.

According to a first aspect, an embodiment of the present invention provides an access point handover method. The method includes: sensing, by a terminal, that a currently connected access point cannot satisfy a transmission condition. The method further includes finding, by the terminal, that at least one access point satisfying the transmission condition exists in access points having names partially the same as that of the currently connected access point. The method further includes establishing, by the terminal, a connection to one of the at least one access point satisfying the transmission condition.

In a first possible implementation of the first aspect, the transmission condition includes at least one of the following: a strength of a signal received by the terminal is greater than a first threshold; the terminal detects that a packet loss rate for received data is less than a second threshold; a round-trip delay for data transmitted by the terminal is less than a third threshold; and a download rate or an upload rate of the terminal is less than a fourth threshold.

With reference to the first aspect or the first possible implementation of the first aspect, in a second possible implementation, when there is one access point satisfying the transmission condition, before the establishing, by the terminal, a connection to one of the at least one access point satisfying the transmission condition, the method further includes: breaking, by the terminal, a connection to the currently connected access point.

With reference to the first aspect or the first possible implementation of the first aspect, in a third possible implementation, when there are at least two access points satisfying the transmission condition, after the establishing, by the terminal, a connection to one of the at least one access point satisfying the transmission condition, the method further includes: breaking, by the terminal, a connection to the currently connected access point.

According to a second aspect, an embodiment of the present invention provides a terminal. The terminal includes: a communications interface, configured to communicate with an access point. The terminal further includes a processor, configured to: sense that a currently connected access point cannot satisfy a transmission condition. The processor is configured to find that at least one access point satisfying the transmission condition exists in access points associated with the currently connected access point. The processor is configured to establish a connection to one of the at least one access point satisfying the transmission condition. The at least one access point associated with the currently connected access point has a name partially the same as that of the currently connected access point.

In a first possible implementation of the second aspect, the transmission condition includes at least one of the following: a strength of a signal received by the terminal is greater than a first threshold; the terminal detects that a packet loss rate for received data is less than a second threshold; a round-trip delay for data transmitted by the terminal is less than a third threshold; and a download rate or an upload rate of the terminal is less than a fourth threshold.

With reference to the second aspect or the first possible implementation of the second aspect, in a second possible implementation, when there is one access point satisfying the transmission condition, before the processor establishes the connection to the one of the at least one access point satisfying the transmission condition, the following is further included: the processor breaks a connection to the currently connected access point.

With reference to the second aspect or the first possible implementation of the second aspect, in a third possible implementation, when there are at least two access points satisfying the transmission condition, after the processor establishes the connection to the one of the at least one access point satisfying the transmission condition, the following is further included: the processor breaks a connection to the currently connected access point.

According to the network handover method and the apparatus provided in the embodiments of the present invention, when the currently connected access point cannot satisfy a transmission condition, an access point satisfying the transmission condition in the access points having the names partially the same as that of the currently connected access point is searched for. The connection is established to the found access point, thereby implementing automatic handover between different access points and ensuring surfing experience of a user.

BRIEF DESCRIPTION OF THE DRAWINGS

To describe the technical solutions in the embodiments of the present invention or in the prior art more clearly, the following briefly describes the accompanying drawings required for describing the embodiments or the prior art. Apparently, the accompanying drawings in the following description show merely some embodiments of the present invention, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.

FIG. 1 is a flowchart of an access point handover method according to an embodiment of the present invention; and

FIG. 2 is a composition structure diagram of a terminal according to an embodiment of the present invention.

DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS

The following describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are merely some but not all of the embodiments of the present invention. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

A first embodiment of the present invention provides a system. The system includes at least one terminal and at least two access points. The system is applicable to short-range communication. The short-range communication herein may be communication within dozens of meters. The following describes the system in detail.

The terminal included in the system is connected to one of the at least two access points. As shown in FIG. 2, the terminal includes: a communications interface 201, configured to communicate with the access point. The terminal further includes a processor 202, configured to: sense that the currently connected access point cannot satisfy a transmission condition; find that at least one access point satisfying the transmission condition exists in access points associated with the currently connected access point; and establish a connection to one of the at least one access point satisfying the transmission condition. The at least one access point associated with the currently connected access point has a name partially the same as that of the currently connected access point.

In this way, the terminal can perform handover between the currently connected access point and the access point associated with the currently connected access point. Therefore, a user does not need to manually perform handover, thereby ensuring surfing experience of the user.

The transmission condition includes at least one of the following:

1. A strength of a signal received by the terminal is greater than a first threshold. The first threshold may be −75 db (decibel).

2. The terminal detects that a packet loss rate for received data is less than a second threshold. The second threshold may be 10%.

3. A round-trip delay for data transmitted by the terminal is less than a third threshold. The third threshold may be 100 ms (millisecond).

4. A download rate or an upload rate of the terminal is less than a fourth threshold. The fourth threshold may be 10 kbps (kilobyte per second).

When there is one access point satisfying the transmission condition, in addition to establishing the connection to the one of the at least one access point satisfying the transmission condition, the processor is further configured to break a connection to the currently connected access point.

When there are at least two access points satisfying the transmission condition, in addition to establishing the connection to the one of the at least one access point satisfying the transmission condition, the processor is further configured to break, by the terminal, a connection to the currently connected access point.

When there are at least two access points satisfying the transmission condition, after finding the at least two access points satisfying the transmission condition, the processor first establishes a connection to the at least two access points, determines to connect to one of the at least two access points, and then breaks a connection to another access point connected to the terminal.

A basis used by the processor to determine an access point to which the processor is to connect in the at least two access points is that one or more of the foregoing transmission conditions are satisfied.

That the at least one access point associated with the currently connected access point has a name partially the same as that of the currently connected access point includes the following. The at least one access point associated with the currently connected access point has the name with a prefix the same as that of the name of the currently connected access point. For example, xxx_5G and xxx_24G are associated access points, and a same part xxx_of the names of the two access points is a prefix of the names of the two access points. That names of access points are partially the same may alternatively mean that suffixes of names of two access points are the same, or any parts of names of two access points are the same.

The at least one access point associated with the currently connected access point may be a preset associated access point. For example, the user may set a router 1 and a router 2 as associated access points in the terminal.

The system further includes the access points. The access point includes: a communications interface, configured to communicate with the terminal; and a processor, configured to establish a connection to the terminal.

A second embodiment of the present invention provides an access point handover method. As shown in FIG. 1, the method includes the following steps:

Step 101: A terminal senses that a currently connected access point cannot satisfy a transmission condition.

Step 102: The terminal finds that at least one access point satisfying the transmission condition exists in access points associated with the currently connected access point.

Step 103: The terminal establishes a connection to one of the at least one access point satisfying the transmission condition.

The at least one access point associated with the currently connected access point has a name partially the same as that of the currently connected access point.

In this way, the terminal can perform handover between the currently connected access point and the access point associated with the currently connected access point. Therefore, a user does not need to manually perform handover, thereby ensuring surfing experience of the user.

The transmission condition includes at least one of the transmission conditions in the first embodiment, and details are not described herein again.

When there is one access point satisfying the transmission condition, before the establishing, by the terminal, a connection to one of the at least one access point satisfying the transmission condition, the method further includes: breaking, by the terminal, a connection to the currently connected access point.

When there are at least two access points satisfying the transmission condition, after the establishing, by the terminal, a connection to one of the at least one access point satisfying the transmission condition, the method further includes: breaking, by the terminal, a connection to the currently connected access point.

When there are at least two access points satisfying the transmission condition, after finding the at least two access points satisfying the transmission condition, the terminal first establishes a connection to the at least two access points, determines to connect to one of the at least two access points, and then breaks a connection to another access point connected to the terminal.

A basis used by the terminal to determine an access point to which the terminal is to connect in the at least two access points is that one or more of the foregoing transmission conditions are satisfied.

That the at least one access point associated with the currently connected access point has a name partially the same as that of the currently connected access point includes the following. The at least one access point associated with the currently connected access point has the name with a prefix the same as that of the name of the currently connected access point. For example, xxx_5G and xxx_24G are associated access points, and a same part xxx_of the names of the two access points is a prefix of the names of the two access points. That names of access points are partially the same may alternatively mean that suffixes of names of two access points are the same, or any parts of names of two access points are the same.

It may be understood by a person skilled in the art that, for the purpose of convenient and brief description, for a detailed working process of the foregoing system, apparatus, and unit, refer to a corresponding process in the foregoing method embodiment, and details are not described herein.

Functional units in the embodiments of the present invention may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in a form of hardware, or may be implemented in a form of hardware in addition to a software functional unit.

A person of ordinary skill in the art may understand that all or some of the steps of the method embodiment may be implemented by a program instructing relevant hardware. The program may be stored in a computer readable storage medium. When the program runs, the steps of the method embodiment are performed. The foregoing storage medium includes: any medium that can store program code, such as a ROM, a RAM, a magnetic disk, or an optical disc.

The descriptions are only specific implementations of the present invention, but are not intended to limit the protection scope of the present invention. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed in the present invention shall fall within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims. 

What is claimed is:
 1. A terminal, comprising: a communications interface, configured to communicate with an access point; a processor; and a non-transitory computer readable storage medium storing programing for execution by the processor, the programing including instructions to: detect a currently connected access point does not satisfy a transmission condition, the currently connected access point has a name indicating a type of network connection provided by the currently connected access point, the type of network connection provided by the currently connected access point is 5G; and when at least one access point satisfying the transmission condition in a plurality of access points associated with the currently connected access point and when the currently connected access point does not satisfy the transmission condition, establish a connection to a first access point of the at least one access point satisfying the transmission condition, each of the at least one access point have a name indicating a respective type of network connection provided by a respective one of the at least one access point and is at least partially the same as the name of the currently connected access point, the types of network connections provided by the at least one access point comprises 2.4G.
 2. The terminal according to claim 1, wherein the transmission condition comprises: a strength of a signal received, by the terminal, is greater than a first threshold; a packet loss rate of data, received by the terminal, is less than a second threshold; a round-trip delay of data transmitted, by the terminal, is less than a third threshold; or a download rate or an upload rate of the terminal is less than a fourth threshold.
 3. The terminal according to claim 1, wherein the instructions comprise further instructions to break a connection to the currently connected access point before the terminal establishes the connection to the first access point of the at least one access point satisfying the transmission condition.
 4. The terminal according to claim 1, wherein the instructions comprise further instructions to: when there are at least two access points satisfying the transmission condition in the plurality of access points associated with the currently connected access point, after the terminal establishes the connection to the first access point of the at least one access point satisfying the transmission condition break a connection to the currently connected access point.
 5. The terminal according to claim 1, wherein a prefix of a respective name of each of the plurality of access points is the same as a prefix of the name of the currently connected access point.
 6. The terminal according to claim 1, wherein the currently connected access point is one of the plurality of access points associated with the currently connected access point.
 7. A system, comprising an electronic device and a 2.4/5G dual band router, wherein: the electronic device is configured to: connect to the router via a first access point; and automatically connect to the router via a second access point when the first access point does not satisfy a transmission condition; the router is configured to: connect to the electronic device via the first access point; and automatically connect to the electronic device via the second access point when the first access point does not satisfy the transmission condition; and the router comprises the first access point that supports 5G and the second access point that supports 2.4G, the first access point has a first name, the second access point has a second name, the first access point being associated with the second access point via the first name and the second name, and the first name is at least partially the same as the second name.
 8. The system of claim 7, wherein the transmission condition comprises at least one of: a strength of a signal received, by the electronic device, is greater than a first threshold; a packet loss rate of data received, by the electronic device, is less than a second threshold; a round-trip delay of data transmitted, by the electronic device, is less than a third threshold; or a download rate or an upload rate of the electronic device is less than a fourth threshold.
 9. The system of claim 8, wherein the second access point satisfies the transmission condition.
 10. The system of claim 7, wherein the electronic device is further configured to: break a connection between the router with the electronic device via the first access point.
 11. The system of claim 7, wherein a prefix of the first name of is the same as a prefix of the second name, a postfix of the first name is 5G, and a postfix of the second name is 2.4G.
 12. A router, comprising: a communications interface; a processor; and a non-transitory computer readable storage medium storing programing for execution by the processor, the programing including instructions to cause the router to: connect to an electronic device via a first access point; connect to the electronic device via a second access point when the first access point does not satisfy a transmission condition; and wherein the router comprises the first access point which has a first name and the second access point which has a second name, the first access point supports 5G, the second access point supports 2.4G, and the first access point being associated with the second access point by the first name and the second name, the first name is at least partially the same as the second name.
 13. The router of claim 12, wherein the transmission condition comprises at least one of: a strength of a signal received, by the electronic device, is greater than a first threshold; a packet loss rate of data received, by the electronic device, is less than a second threshold; a round-trip delay of data transmitted, by the electronic device, is less than a third threshold; or a download rate or an upload rate of the electronic device is less than a fourth threshold.
 14. The router of claim 12, wherein the second access point satisfies the transmission condition.
 15. The router of claim 12, wherein the router is further configured to: break a connection between the router with the electronic device via the first access point.
 16. The router of claim 12, wherein a prefix of the first name of is the same as a prefix of the second name, a postfix of the first name is 5G, and a postfix of the second name is 2.4G. 